﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataLayer
{

    public class DBCon
    {
        private static UCNArtDataContext _db = new UCNArtDataContext();
        private static DBCon _instance;

        private DBCon()
        {
            
        }

        public static DBCon Instance
        {
            get
            {
                if (_instance == null)
                {
                    _instance = new DBCon();
                }
                return _instance;
            }
        }

        public static UCNArtDataContext GetDB()
        {
            return _db;
        }
    }
}
